<template>
  <el-config-provider :locale="locale">
    <router-view/>
  </el-config-provider>
</template>
<script lang="js">
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';

const language = ref('zh-cn')
const locale = computed(() => (language.value === 'zh-cn' ? zhCn : en))

export default {
  data() {
    return {
      locale
    }
  }
}

</script>

<style lang="scss">
@import url('./assets/style/index.scss');

#app {
  color: #333;
  height: 100%;
}
</style>
